import request from "../../util/request"

// 查询存储职位信息列表
export function listPositions(query) {
  return request({
    url: '/system/positions/list',
    method: 'get',
    params: query
  })
}

// 查询存储职位信息详细
export function getPositions(PositionID) {
  return request({
    url: '/system/positions/' + PositionID,
    method: 'get'
  })
}

// 新增存储职位信息
export function addPositions(data) {
  return request({
    url: '/system/positions',
    method: 'post',
    data: data
  })
}

// 修改存储职位信息
export function updatePositions(data) {
  return request({
    url: '/system/positions',
    method: 'put',
    data: data
  })
}

// 删除存储职位信息
export function delPositions(PositionID) {
  return request({
    url: '/system/positions/' + PositionID,
    method: 'delete'
  })
}
